package com.bjpowernode.boss.mvc.service;

import com.bjpowernode.boss.mvc.models.dto.operator.LoginResponseDto;
import com.bjpowernode.boss.mvc.models.form.operator.LoginForm;
import com.bjpowernode.boss.mvc.models.menus.SubMenu;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author Mrs.cui
 * 2024-07-07-21-16
 */
public interface OperatorService {
    /**
     *
     * @param loginForm 登录的名称和密码
     * @return jwt和showName
     */
     LoginResponseDto operatorLogin(LoginForm loginForm);

    /**
     * 获取登录用户的菜单列表
     * @param operatorId
     * @return
     */
    List<SubMenu> getMenuByLoginUser(Long operatorId);
}
